/* 
 * File:   Algorithm.cpp
 * Author: guilhermemg
 * 
 * Created on 14 de Fevereiro de 2012, 13:09
 */

#include "Algorithm.h"

Algorithm::Algorithm() {
}

Algorithm::Algorithm(const Algorithm& orig) {
}

Algorithm::~Algorithm() {
}

IplImage* Algorithm::getImage() {
    return this->image;
}

double Algorithm::getValue() {
    return this->value;
}

void Algorithm::setValue(double v) {
    this->value = v;
}

string Algorithm::toString() {
    char* strValue = new char[30];
    sprintf(strValue,"%-5.3g", getValue());
    
    string nameColon = getName().append(" : ");
    string finalString = nameColon.append(strValue);
    
    return finalString;
}

void Algorithm::setName(string n){
    this->nameAlgorithm = n;
}

void Algorithm::setImage(IplImage* img) {
    this->image = img;
}

string Algorithm::getName() {
    return this->nameAlgorithm;
}

string Algorithm::getLargeName() {
    return this->largeName;
}

void Algorithm::setLargeName(string ln) {
    this->largeName = ln;
}